public class text1 {
    public static void main(String[] args) {
        //99乘法表
        /*for (int i = 1; i < 10; i++) {
            for (int j = i; j < 10; j++) {
                System.out.print("   "+i+"*"+j+"="+i*j);
            }
            System.out.println();
        }*/


        //斐波那契数列   1,1,2,3,5,8,13......
        /*int[] arr=new int[10];
        arr[0]=1;
        arr[1]=1;
        for (int i = 0; i < arr.length; i++) {
            if (i>1){
                arr[i]=arr[i-1]+arr[i-2];
            }
            System.out.println(arr[i]);
        }*/

        //递归
        /*for (int i = 1; i < 10; i++) {
            System.out.println(FeiBo(i));
        }*/

        int x = 0;
        int y = 10;
        do{
            y--;
            ++x;
        }while(x<6);
        System.out.println(x+","+y);

    }
    //1,1,2,3,5,8,13......
    public static int FeiBo(int i){
        if (i==0||i==1){
            return i;
        }else{
            return FeiBo(i-1)+FeiBo(i-2);
        }
    }

}
